package com.ktjy.order.controller;

import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ktjy.common.annotation.Log;
import com.ktjy.common.core.controller.BaseController;
import com.ktjy.common.core.domain.AjaxResult;
import com.ktjy.common.enums.BusinessType;
import com.ktjy.order.domain.Employees;
import com.ktjy.order.service.IEmployeesService;
import com.ktjy.common.utils.poi.ExcelUtil;
import com.ktjy.common.core.page.TableDataInfo;

/**
 * 员工信息表Controller
 *
 * @author ktjy
 * @date 2025-03-27
 */
@RestController
@RequestMapping("/order/employees")
public class EmployeesController extends BaseController
{
    @Autowired
    private IEmployeesService employeesService;

/**
 * 查询员工信息表列表
 */
@PreAuthorize("@ss.hasPermi('order:employees:list')")
@GetMapping("/list")
    public TableDataInfo list(Employees employees)
    {
        List<Employees> list = employeesService.selectEmployeesList(employees);
        System.out.println(list);
        return getDataTable(list);
    }
}